<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@page import="com.wubo.bm.SecurityManager" %>
<table class="no-style">
	<tr>
	<%if(SecurityManager.isAdmin()){%>
		<s:iterator value="roles" status="stat">
			<td style="text-align:left;">
				<input type="radio" name="roleCode" value="<s:property value="code"/>" onclick="show();"/>
				<span><s:property value="roleName"/></span>
			</td>
			<s:if test="%{(#stat.index + 1)%3==0}">
			</tr><tr>
			</s:if>
		</s:iterator>
	<%}else{%>
		<s:iterator value="roles.{?#this.isLocked=false}" status="stat">
			<td style="text-align:left;">
				<input type="radio" name="roleCode" value="<s:property value="code"/>" onclick="show();"/>
				<span><s:property value="roleName"/></span>
			</td>
			<s:if test="%{(#stat.index + 1)%3==0}">
			</tr><tr>
			</s:if>
		</s:iterator>
	<%}%>
	</tr>
</table>